from django.conf.urls import url
from rest_framework.routers import DefaultRouter
# from rest_framework_jwt.views import obtain_jwt_token
from . import views

urlpatterns = [
    url(r'^users/$', views.UserView.as_view()),
    url(r'^authorizations/$', views.UserAuthorizeView.as_view()),  # 登录功能的实现
    url(r'^user/$', views.UserDetailView.as_view()),  # 用户详情页
    url(r'^email/$', views.EmailView.as_view()),  # 注册邮箱
    url(r'^emails/verification/$', views.VerifyEmailView.as_view()),
    url(r'^browse_histories/$', views.UserBrowsingHistoryView.as_view())


]
router = DefaultRouter()
router.register('addresses', views.AddressViewSet, base_name='addresses')
urlpatterns += router.urls
